<template>
  <result title="500 Internal Server Error" type="500" :tip="tip">
    <t-button @click="() => $router.push('/')">返回首页</t-button>
  </result>
</template>
<script lang="ts">
import { useRoute } from 'vue-router';

export default {
  name: 'Result500',
  data() {
    return {
      errorMsg: '',
      tip: '',
    };
  },
  mounted() {
    this.errorMsg = useRoute().params.msg;
    this.tip = `系统错误！错误代码${this.errorMsg},请将该代码给于系统管理员`;
  },
};
</script>
<script setup lang="ts">
import Result from '@/components/result/index.vue';
</script>
